﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Poll.ascx.cs" Inherits="Widgets_Poll" %>

 <script src="<%: ResolveUrl("~/Scripts/poll.js") %>" type="text/javascript"></script>
<fieldset class="shadow rounded">
    <legend class="rounded">
        <img alt="Lightning" class="icon" src="/Styles/DalatCooking/images/icons/moneybag.png" /><%=this.Title %></legend>
    <div class="box content">
        <b>
        <asp:Literal ID="litQuestion" runat="server" /></b>
            <div runat="server" id="divMsg" class="mInfo" visible="false" />
        <div id="divPoll" class="poll-box" runat="server">
            <div id="divAnswers" runat="server">
                <span id="loading-poll">
                    <img src="/Images/ajax-loader.gif" alt="Loading" />
                    Đang xử lý...</span>
                <ul>
                    <asp:Repeater runat="server" ID="rptChoices">
                        <ItemTemplate>
                            <li>
                                <label>
                                    <input type="radio" value='<%# Eval("PollChoiceID") %>' name="rdoPoll" id='rdoPoll<%# Container.ItemIndex %>' />
                                    <%# Eval("Choice") %>
                                </label>
                            </li>
                        </ItemTemplate>
                    </asp:Repeater>
                </ul>
                <div class="votebutton">
                    <img alt="vote" onclick="Vote(<%=this.PollID %>);" src="/Images/bt_binhchon.gif" id="btnVotePoll"
                        style="cursor: pointer" />
                    <img alt="result" onclick="showPoll(<%=this.PollID %>);" src="/Images/bt_xemkq.gif" id="btnShowPoll"
                        style="cursor: pointer" />
                </div>
                <br />
                <div class="clear">
                </div>
            </div>
        </div>
    </div>
</fieldset>

<asp:HiddenField runat="server" ID="hidPollID" />
